﻿using System.Reflection;
using WorkFlowCore.Plugins;

namespace WorkFlowCore.Host.ViewModels.Plugins
{
    /// <summary>
    /// 插件包描述
    /// </summary>
    public class ManifestWithConfigDto
    {
        /// <summary>
        /// 插件入口（执行dll名称 ）
        /// </summary>
        public string Entry { get; set; }
        /// <summary>
        /// 版本（暂时无用）
        /// </summary>
        public string Version { get; set; }
        /// <summary>
        /// 类型名称
        /// </summary>
        public string ClassName { get; set; }
        /// <summary>
        /// 插件名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 是否可配置
        /// </summary>
        public bool Configurable { get; set; }
    }

    public class ParameterConfigDto
    {
        public string Label { get; set; }
        public string KeyName { get; set; }
        public string DefaultValue { get; set; }
        public string Description { get; set; }
    }
}
